#include "mainwindow.hpp"
#include "remote_widget.hpp"
#include "player_widget.hpp"
#include "edit_widget.hpp"
#include <QApplication>
#include <QTabWidget>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , tabWidget(nullptr)
    , remoteWidget(nullptr)
    , playerWidget(nullptr)
    , editWidget(nullptr)
{
    setupUI();
    setWindowTitle(Config::APP_NAME);
    resize(Config::WINDOW_WIDTH, Config::WINDOW_HEIGHT);
}
MainWindow::~MainWindow()
{
}
void MainWindow::setupUI()
{
    tabWidget = new QTabWidget(this);
    setCentralWidget(tabWidget);
    remoteWidget = new RemoteWidget(this);
    tabWidget->addTab(remoteWidget, "Remote");
    playerWidget = new PlayerWidget(this);
    tabWidget->addTab(playerWidget, "Player");
    editWidget = new EditWidget(this);
    tabWidget->addTab(editWidget, "Edit");
    tabWidget->setCurrentIndex(0);
}